<?php
ob_start();
session_start();

include("conf/config.php");
include("conf/database.php");
include("conf/tools.php");

$curTime=getIndianDateTime();

foreach($_POST as $key => $value) { $arr_data[$key]=$value;}

foreach($arr_data as $key => $value) { $arr_data[$key]=addslashes($value); }

$memberId=$_SESSION["member_id"];
update_qry("bkitc_profiles",$arr_data,"registrant_id=".$memberId);

qry_data("update bkitc_profiles set seva_reg_on='".$curTime."' where registrant_id=".$memberId);

$retMode=$_REQUEST["hmode"];
$memberInfo=getMemberInfo($memberId);
writeLog($memberInfo["full_name"]." updated seva register info.");

if($retMode==1)  
header("location:sevaapplist.php");
else
header("location:sevaregister.php");

?>

